package com.baiduspring.error;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;

@Slf4j
@ControllerAdvice
public class BizException {

//    @ExceptionHandler({Exception.class})
//    @ResponseStatus(HttpStatus.NOT_FOUND)
//    public ModelAndView processException404(Exception e) {
//        log.error("错误信息：", e);
//        return new ModelAndView("error/404");
//    }
//
//    @ExceptionHandler({Exception.class})
//    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
//    public ModelAndView processException500(Exception e) {
//        log.error("错误信息：", e);
//        return new ModelAndView("error/500");
//    }

}
